import Vue from 'vue'
import App from './App.vue'
import router from './router'
import Router from 'vue-router'
import store from './store'
import './permission'
// import './utils/rem'
// import './mock'
// import qs from 'qs'
// Vue.prototype.Qs = qs
// 封装vue本地存储
import Storage from 'vue-ls'
import Antd from 'ant-design-vue';
import 'ant-design-vue/dist/antd.css'
// 图层配置
import LayerSetting from "@/components/LayerSetting";
Vue.component('LayerSetting', LayerSetting)
// 控制面板
import LayerPanel from "@/components/LayerPanel";
Vue.component('LayerPanel', LayerPanel)
// 操作区域
import OperationPanel from "@/components/OperationPanel";
Vue.component('OperationPanel', OperationPanel)
// 折线图
import LineChart from "@/components/Chart/LineChart";
Vue.component('LineChart', LineChart)

import * as echarts from 'echarts'
Vue.prototype.$echarts = echarts

Vue.use(Antd);

let options = {
  namespace: 'vuejs__', // key键前缀
  name: 'ls', // 命名Vue变量.[ls]或this.[$ls],
  storage: 'local', // 存储名称: session, local, memory
}
Vue.use(Storage, options)
Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
